public class Test {
    public static void main(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root=testBinaryTree.createTree();
        testBinaryTree.postOrder(root);
        System.out.println();

        testBinaryTree.inOrder(root);
        System.out.println();

        testBinaryTree.postOrder(root);
        System.out.println();

        System.out.println("====节点个数====");

        // System.out.println(testBinaryTree.size(root));


        testBinaryTree.size2(root);
        System.out.println(TestBinaryTree.nodSize);

        System.out.println(testBinaryTree.getLeafNodeCount(root));

        System.out.println("====第k层节点个数====");
       int ret = testBinaryTree.getKLevelNodeCount(root,3);
        System.out.println(ret);

        System.out.println("求树的高度");

        int height=testBinaryTree.getHeight(root);
        System.out.println(height);


        System.out.println("====查找某个值=====");
        TestBinaryTree.TreeNode retN=testBinaryTree.find(root,'E');
        System.out.println(retN.val);

    }
}
